package com.example.entity;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cases {
    @NotNull
    private Integer id;  //id
    @NotEmpty
    private String image;  //案例图片
    @NotEmpty
    private String url;  //案例链接
    @NotEmpty
    private String introduction;  //案例简介
    @NotEmpty
    private String time;  //发布时间
    @NotEmpty
    private String origin;  //案例发布源
    @NotEmpty
    private String author;  //作者
    @NotEmpty
    private String content;  //案例内容
    @NotEmpty
    private String title;  //案例标题
}
